package com.adtec.base.cloud.wechatservice.wechatcloud.config.handler;

import com.adtec.base.cloud.commons.exception.AjaxResponse;
import com.adtec.base.cloud.commons.exception.CustomExceptionType;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * sentinel 限流示例
 */
@Slf4j
public class WechatControllerHandler {

    public static AjaxResponse defaultFallback(Throwable e) {
        return AjaxResponse.error(CustomExceptionType.SYSTEM_ERROR, e.getMessage());
    }


}